<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master"
    CodeBehind="AdminLinkEdit.aspx.cs" Inherits="ud_Links.UI.AdminLinkEdit" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
        <mp:CornerRounderTop ID="ctop1" runat="server" />
        <asp:Panel ID="pnlStoreManager" runat="server" CssClass="art-Post-inner panelwrapper">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true"
                UseLowerCaseArtisteerClasses="true" />
            <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
                <div class="modulecontent">
                    <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server" >
                <ContentTemplate>--%>
                    <mp:mojoGridView ID="gvItems" runat="server" AutoGenerateColumns="false" AllowPaging="true"
                        CssClass="gridviewadmin serverlocation">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Literal ID="ltrName" runat="server" Text='<%# Eval("Name") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Literal ID="ltrInfo" runat="server" Text='<%# FormatInfo(Eval("Link").ToString()) %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:ImageButton ID="ibtnEdit" runat="server" ImageUrl='<%# EditLinkImageUrl %>'
                                        CommandName="EditItem" CommandArgument='<%# Eval("Guid") %>' ToolTip="<%# EditLinkText %>"
                                        CausesValidation="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:ImageButton ID="ibtnDelete" runat="server" ImageUrl='<%# DeleteLinkImageUrl %>'
                                        CommandName="DeleteItem" CommandArgument='<%# Eval("Guid") %>' ToolTip="<%# DeleteLinkText %>"
                                        CausesValidation="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            <asp:Literal ID="ltrEmpty" runat="server" Text='<%# Resources.LinkModuleResource.InfoEmptyData %>' />
                        </EmptyDataTemplate>
                    </mp:mojoGridView>
                    <asp:Panel ID="pnlEdit" runat="server">
                        <div class="settingrow">
                            <mp:SiteLabel ID="lblName" runat="server" ResourceFile="LinkModuleResource" ConfigKey="LabelName"
                                CssClass="settinglabel" ForControl="txtName" />
                            <asp:TextBox ID="txtName" runat="server" MaxLength="255" CssClass="settingtextbox widetextbox" />
                            <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName"
                                ErrorMessage="*" ValidationGroup="ServerLocation" />
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="lblLink" runat="server" ResourceFile="LinkModuleResource" ConfigKey="LabelLink"
                                CssClass="settinglabel" ForControl="edInfo" />
                            
                            <asp:TextBox ID="txtLink" runat="server" MaxLength="255" CssClass="settingtextbox widetextbox txtLink" />
                        </div>
                        <div class="settingrow">
                            <portal:mojoButton ID="btnSave" runat="server" ValidationGroup="ServerLocation" />
                            <portal:mojoButton ID="btnDelete" runat="server" CausesValidation="false" />
                        </div>
                    </asp:Panel>
                    <%--</ContentTemplate>
            </asp:UpdatePanel>--%>
                </div>
            </portal:mojoPanel>
            <div class="cleared">
            </div>
        </asp:Panel>
        <mp:CornerRounderBottom ID="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
